//===================================================================
// 西交投.NET产品框架 版权所有
//===================================================================
using System;
using System.ComponentModel.DataAnnotations;
using XCI.Core;

namespace XCI.Sys.Model
{
    /// <summary>
    /// 系统错误日志
    /// @author 焦元义
    /// </summary>
    [ApiModel(Caption = "系统错误日志")]
    public class SysErrorLog
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Display(Name ="主键")]
        [ApiModelProperty(PrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        [Display(Name ="请求参数")]
        public string ReqParam { get; set; }

        /// <summary>
        /// 请求方法
        /// </summary>
        [Display(Name ="请求方法")]
        public string ReqMethod { get; set; }

        /// <summary>
        /// 请求地址
        /// </summary>
        [Display(Name ="请求地址")]
        public string ReqUrl { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        [Display(Name ="错误消息")]
        public string Msg { get; set; }

        /// <summary>
        /// 错误详细信息
        /// </summary>
        [Display(Name ="错误详细信息")]
        public string Details { get; set; }

        /// <summary>
        /// 应用主键
        /// </summary>
        [Display(Name ="应用主键")]
        public string AppId { get; set; }

        /// <summary>
        /// 应用名称
        /// </summary>
        [Display(Name ="应用名称")]
        public string AppName { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [Display(Name ="IP地址")]
        public string Ip { get; set; }

        /// <summary>
        /// IP地点
        /// </summary>
        [Display(Name = "IP地点")]
        public string IpLocation { get; set; }

        /// <summary>
        /// 浏览器
        /// </summary>
        [Display(Name = "浏览器")]
        public string Browser { get; set; }

        /// <summary>
        /// 操作系统
        /// </summary>
        [Display(Name = "操作系统")]
        public string Os { get; set; }

        /// <summary>
        /// 浏览器标识
        /// </summary>
        [Display(Name = "浏览器标识")]
        public string UserAgent { get; set; }

        /// <summary>
        /// 操作人信息
        /// </summary>
        [Display(Name ="操作人信息")]
        public string OperateUserId { get; set; }

        /// <summary>
        /// 操作人信息
        /// </summary>
        [Display(Name ="操作人信息")]
        public string OperateUserName { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        [Display(Name ="操作时间")]
        public DateTime? OperateDateTime { get; set; }

        /// <summary>
        /// 复制对象
        /// </summary>
        public SysErrorLog Clone()
        {
            return (SysErrorLog)MemberwiseClone();
        }
    }
}
